package com.ojoin.trade.supplyloan_core.web.service.impl;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common.web.service.impl.BaseServiceImpl;
import com.ojoin.trade.supplyloan_core.web.dao.TbSlPlatformRuleDao;
import com.ojoin.trade.supplyloan_core.web.domain.TbSlPlatformRule;
import com.ojoin.trade.supplyloan_core.web.service.TbSlPlatformRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by huanggc on 2016/8/1.
 */
@Service
public class TbSlPlatformRuleServiceImpl extends BaseServiceImpl<TbSlPlatformRule> implements TbSlPlatformRuleService {


    @Autowired
    private TbSlPlatformRuleDao dao;

    @Override
    protected BaseDao<TbSlPlatformRule> getBaseDao() {
        return dao;
    }

    @Override
    public List<TbSlPlatformRule> getAllEnable() throws BusinessException {
        return dao.getAllEnable();
    }
}
